home *** CD-ROM | disk | FTP | other *** search
- Path: queeg.apci.net!news
- From: James O'Connor <oconnor@apci.net>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: Mon, 26 Feb 1996 12:34:39 -0800
- Organization: Applied Personal Computing, Inc.
- Message-ID: <3132195F.349@apci.net>
- References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4ggshe$7bk@goanna.cs.rmit.EDU.AU> <4gmp2o$ian@ux1.lmu.edu>
- NNTP-Posting-Host: dialup215.apci.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Ray Toal wrote:
- >
- > ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) wrote:
- >
- > >(4) C++ in particular has been changing very rapidly. It seems as if every
- > > time I turn around there is a new keyword. I was looking at some code
- > > fragments today in a book; they were full of things like
- > > void HelpIndex () (RTMessage) = [CM_FIRST+CM_HelpIndex];
- > > I've used three C++ compilers, read every book with "Stroustrup" on it,
- > > and keep on browsing through the draft standard, and haven't the foggiest
- > > notion what this is supposed to do.
- >
- > That line of code was not standard C++ (not that there even is a standard
- > yet :-). It was a "syntax extension" that came with the Borland C++
- > Compiler Version 3.x as part of the ObjectWindows Framework.
- > Interestingly when Borland released 4.0 they removed that "syntax
- > extension."
- >
- > I would be interested to know if any Ada vendors have released
- > Ada compilers with vendor-specific syntax modifications.
- >
- > Ray Toal
-
-
- This was only used for a Windows application (a TWindow classs, to be
- specific) to tie certain message responses (In this case a Menu choice
- with an ID of CM_HelpIndex) to certain functions. (When the (MS) window
- receives the Command Message of CM_HelpIndex, it calls the C++ function
- HelpIndex defiend in the TWindow subclass behind the 'Real' Window.
- You're right, for OWL 2.0, they changed to a standard function
- declaration and added a couple of MACROS to handle the mapping...
-
- James O'Connor
- oconnor@apci.net
-